package com.yjd.comm.recharge.service;

import java.util.List;
import java.util.Map;

import com.yjd.comm.base.model.PagerModel;
import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.borrow.dto.VolumeFinancialPriceReturnRequestDto;
import com.yjd.comm.funds.dto.VolumeFinancialDto;
import com.yjd.comm.recharge.model.VolumeFinancialModel;

/**
 * <b>description</b>：理财金汇总业务接口<br>
 * <b>time</b>：2014-11-27 10:34:53 <br>
 * <b>author</b>：  ready likun_557@163.com
 */
public interface IVolumeFinancialService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public VolumeFinancialModel insert(VolumeFinancialModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(VolumeFinancialModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param volume_id
	 * @return
	 * @throws Exception
	 */
	public int delete(Long volume_id) throws Exception;
	
	/**
	 * 分页查询理财金
	* @param paramMap
	* @return PagerModel
	 * @throws Exception 
	 */ 
	@SuppressWarnings("rawtypes")
	public PagerModel getVolumePageModel(Map paramMap) throws Exception;
	
	/**
	 * 获取用户未使用、未过期的理财金
	* @param idUser
	* @return VolumeFinancialDto
	 */
	public VolumeFinancialDto getNotUsedFinancial(Long idUser);
	
	/**
	 * 理财金返现
	 * 
	 * @param list
	 * @param curtime
	 * @throws Exception
	 */
	public void volumeFinancialPriceReturn(
			List<VolumeFinancialPriceReturnRequestDto> list, long curtime)
			throws Exception;

}
